﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.IO.Packaging;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SanmaoTools.Models
{
    public class Element
    {//数据是自增需要加上IsIdentity
     //数据库是主键需要加上IsPrimaryKey
     //注意：要完全和数据库一致2个属性
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime? Date { get; set; }
        /// <summary>
        /// 牌号
        /// </summary>
        public string? Brand { get; set; }
        /// <summary>
        /// 中转包次号
        /// </summary>
        public string? Transfernumber { get; set; }
        public string? Al { get; set; }
        public string? Si { get; set; }
        public string? Fe { get; set; }
        public string? Cu { get; set; }
        public string? Mn { get; set; }
        public string? Mg { get; set; }
        public string? Cr { get; set; }
        public string? Ni { get; set; }
        public string? Zn { get; set; }
        public string? Ti { get; set; }
        public string? Be { get; set; }
        public string? Ca { get; set; }
        public string? Co { get; set; }
        public string? Ga { get; set; }
        public string? Na { get; set; }
        public string? P { get; set; }
        public string? Pb { get; set; }
        public string? Sb { get; set; }
        public string? Sn { get; set; }
        public string? Sr { get; set; }
        public string? V { get; set; }
        public string? Zr { get; set; }
        [SugarColumn(IsNullable = true)]
        public bool IsArchived { get; set; }

        [SugarColumn(IsNullable = true)]
        public DateTime? ArchiveTime { get; set; }

        [SugarColumn(Length = 50, IsNullable = true)]
        public string ArchiveBatchNumber { get; set; }

        [SugarColumn(IsNullable = true)]
        public int? ArchiveId { get; set; }

        public DateTime? CreateTime { get; set; }
        public DateTime? UpdateTime { get; set; }

    }
}
